package basic;

public enum ReturnCode {
	
	PF_SUCCESS,          
	PF_PAGEPINNED,				// page pinned in buffer
	PF_PAGENOTINBUF,			// page to be unpinned is not in buffer
	PF_INVALIDPAGE,				// invalid page number
	PF_FILEOPEN,				// file handle already open
	PF_CLOSEDFILE,				// file is closed
	PF_PAGEFREE,				// page already free
	PF_PAGEUNPINNED,			// page already unpinned
	PF_EOF,				
	PF_TOOSMALL,			
	PF_LASTWART	,		
	 
	
	PF_NOMEM,					// out of memory
	PF_NOBUF,					// out of buffer space
	PF_INCOMPLETEREAD,			// incomplete read of page from file
	PF_INCOMPLETEWRITE, 		// incomplete write of page to file 
	PF_HDRREAD,					// incomplete read of header from file
	PF_HDRWRITE,				// incomplete write of header to file
	
	PF_PAGEINBUF,				// new allocated page already in buffer
	PF_HASHNOTFOUND,			// hash table entry not found
	PF_HASHPAGEEXIST,			// page already exists in hash table
	PF_INVALIDNAME, 			// invalid file name
	PF_UNIX,					// Unix error
	PF_LASTERROR, 				// Internal PF errors:
	PF_FILEEXIST, 
	PF_CANNOTCREATEFILE, 
	PF_FILENOTFOUND, 
	PF_FAILEDTODELETEFILE,
	
}
